.class public Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;
.super Ljava/lang/Object;
.source "DecorationItem.java"


# instance fields
.field a:J

.field b:F

.field c:F

.field d:F

.field e:F

.field f:F

.field g:Z

.field private h:Landroid/graphics/Paint;

.field private i:F


# direct methods
.method public constructor <init>(FF)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->g:Z

    .line 3
    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->b:F

    .line 4
    iput p2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->c:F

    .line 5
    new-instance p1, Landroid/graphics/Paint;

    invoke-direct {p1}, Landroid/graphics/Paint;-><init>()V

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->h:Landroid/graphics/Paint;

    const/4 p2, 0x0

    .line 6
    invoke-virtual {p1, p2}, Landroid/graphics/Paint;->setColor(I)V

    .line 7
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->h:Landroid/graphics/Paint;

    invoke-virtual {p1, v0}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 8
    invoke-static {}, Les/c5;->a()Landroid/content/Context;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    sget p2, Les/v4;->durec_text_decor_default_space_size:I

    invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getDimension(I)F

    move-result p1

    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->i:F

    return-void
.end method

.method public constructor <init>(Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;)V
    .locals 2

    .line 9
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x1

    .line 10
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->g:Z

    .line 11
    iget-wide v0, p1, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->a:J

    iput-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->a:J

    .line 12
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->j()F

    move-result v0

    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->b:F

    .line 13
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->k()F

    move-result v0

    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->c:F

    .line 14
    iget v0, p1, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->d:F

    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->d:F

    .line 15
    iget v0, p1, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->e:F

    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->e:F

    .line 16
    iget v0, p1, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->f:F

    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->f:F

    .line 17
    iget-boolean v0, p1, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->g:Z

    iput-boolean v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->g:Z

    .line 18
    new-instance v0, Landroid/graphics/Paint;

    iget-object v1, p1, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->h:Landroid/graphics/Paint;

    invoke-direct {v0, v1}, Landroid/graphics/Paint;-><init>(Landroid/graphics/Paint;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->h:Landroid/graphics/Paint;

    .line 19
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->c()F

    move-result p1

    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->i:F

    return-void
.end method


# virtual methods
.method public a()F
    .locals 3

    .line 2
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->e:F

    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->i:F

    const/high16 v2, 0x40000000    # 2.0f

    mul-float v1, v1, v2

    sub-float/2addr v0, v1

    return v0
.end method

.method public a(F)V
    .locals 1

    .line 3
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->d:F

    mul-float v0, v0, p1

    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->d:F

    .line 4
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->e:F

    mul-float v0, v0, p1

    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->e:F

    .line 5
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->i:F

    mul-float v0, v0, p1

    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->i:F

    return-void
.end method

.method public a(J)V
    .locals 0

    .line 1
    iput-wide p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->a:J

    return-void
.end method

.method public a(Landroid/graphics/Canvas;)V
    .locals 5

    .line 7
    invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I

    .line 8
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->b:F

    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->d:F

    const/high16 v2, 0x40000000    # 2.0f

    div-float/2addr v1, v2

    sub-float/2addr v0, v1

    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->i:F

    add-float/2addr v0, v1

    .line 9
    iget v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->c:F

    iget v4, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->e:F

    div-float/2addr v4, v2

    sub-float/2addr v3, v4

    add-float/2addr v3, v1

    .line 10
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->g()F

    move-result v1

    iget v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->b:F

    iget v4, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->c:F

    invoke-virtual {p1, v1, v2, v4}, Landroid/graphics/Canvas;->rotate(FFF)V

    .line 11
    invoke-virtual {p1, v0, v3}, Landroid/graphics/Canvas;->translate(FF)V

    .line 12
    invoke-virtual {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->b(Landroid/graphics/Canvas;)V

    .line 13
    invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V

    return-void
.end method

.method public a(Z)V
    .locals 0

    .line 6
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->g:Z

    return-void
.end method

.method a(FF)Z
    .locals 5

    .line 14
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->f()Landroid/graphics/RectF;

    move-result-object v0

    .line 15
    new-instance v1, Landroid/graphics/Matrix;

    invoke-direct {v1}, Landroid/graphics/Matrix;-><init>()V

    .line 16
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->g()F

    move-result v2

    neg-float v2, v2

    invoke-virtual {v0}, Landroid/graphics/RectF;->centerX()F

    move-result v3

    invoke-virtual {v0}, Landroid/graphics/RectF;->centerY()F

    move-result v4

    invoke-virtual {v1, v2, v3, v4}, Landroid/graphics/Matrix;->setRotate(FFF)V

    const/4 v2, 0x2

    new-array v3, v2, [F

    new-array v2, v2, [F

    const/4 v4, 0x0

    aput p1, v2, v4

    const/4 p1, 0x1

    aput p2, v2, p1

    .line 17
    invoke-virtual {v1, v3, v2}, Landroid/graphics/Matrix;->mapPoints([F[F)V

    .line 18
    aget p2, v3, v4

    aget p1, v3, p1

    invoke-virtual {v0, p2, p1}, Landroid/graphics/RectF;->contains(FF)Z

    move-result p1

    return p1
.end method

.method public b()F
    .locals 3

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->d:F

    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->i:F

    const/high16 v2, 0x40000000    # 2.0f

    mul-float v1, v1, v2

    sub-float/2addr v0, v1

    return v0
.end method

.method public b(F)V
    .locals 1

    .line 2
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->e:F

    mul-float v0, v0, p1

    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->e:F

    return-void
.end method

.method protected b(Landroid/graphics/Canvas;)V
    .locals 2

    .line 3
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->f()Landroid/graphics/RectF;

    move-result-object v0

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->h:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawRect(Landroid/graphics/RectF;Landroid/graphics/Paint;)V

    return-void
.end method

.method public c()F
    .locals 1

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->i:F

    return v0
.end method

.method public c(F)V
    .locals 1

    .line 2
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->d:F

    mul-float v0, v0, p1

    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->d:F

    return-void
.end method

.method public d()F
    .locals 1

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->e:F

    return v0
.end method

.method public d(F)V
    .locals 1

    .line 2
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->b:F

    mul-float v0, v0, p1

    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->b:F

    return-void
.end method

.method public e()J
    .locals 2

    .line 1
    iget-wide v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->a:J

    return-wide v0
.end method

.method public e(F)V
    .locals 1

    .line 2
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->c:F

    mul-float v0, v0, p1

    iput v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->c:F

    return-void
.end method

.method public f()Landroid/graphics/RectF;
    .locals 8

    .line 2
    new-instance v0, Landroid/graphics/RectF;

    iget v1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->b:F

    iget v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->d:F

    const/high16 v3, 0x40000000    # 2.0f

    div-float v4, v2, v3

    sub-float v4, v1, v4

    iget v5, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->c:F

    iget v6, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->e:F

    div-float v7, v6, v3

    sub-float v7, v5, v7

    div-float/2addr v2, v3

    add-float/2addr v1, v2

    div-float/2addr v6, v3

    add-float/2addr v5, v6

    invoke-direct {v0, v4, v7, v1, v5}, Landroid/graphics/RectF;-><init>(FFFF)V

    return-object v0
.end method

.method public f(F)V
    .locals 2

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->i:F

    const/high16 v1, 0x40000000    # 2.0f

    mul-float v0, v0, v1

    add-float/2addr p1, v0

    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->e:F

    return-void
.end method

.method public g()F
    .locals 1

    .line 2
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->f:F

    return v0
.end method

.method public g(F)V
    .locals 2

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->i:F

    const/high16 v1, 0x40000000    # 2.0f

    mul-float v0, v0, v1

    add-float/2addr p1, v0

    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->d:F

    return-void
.end method

.method public h()Landroid/graphics/RectF;
    .locals 4

    .line 2
    new-instance v0, Landroid/graphics/Matrix;

    invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V

    .line 3
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->g()F

    move-result v1

    iget v2, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->b:F

    iget v3, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->c:F

    invoke-virtual {v0, v1, v2, v3}, Landroid/graphics/Matrix;->setRotate(FFF)V

    .line 4
    new-instance v1, Landroid/graphics/RectF;

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->f()Landroid/graphics/RectF;

    move-result-object v2

    invoke-direct {v1, v2}, Landroid/graphics/RectF;-><init>(Landroid/graphics/RectF;)V

    .line 5
    invoke-virtual {v0, v1}, Landroid/graphics/Matrix;->mapRect(Landroid/graphics/RectF;)Z

    return-object v1
.end method

.method public h(F)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->i:F

    return-void
.end method

.method public i()F
    .locals 1

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->d:F

    return v0
.end method

.method public i(F)V
    .locals 0

    .line 2
    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->f:F

    return-void
.end method

.method public j()F
    .locals 1

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->b:F

    return v0
.end method

.method public j(F)V
    .locals 0

    .line 2
    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->b:F

    return-void
.end method

.method public k()F
    .locals 1

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->c:F

    return v0
.end method

.method public k(F)V
    .locals 0

    .line 2
    iput p1, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->c:F

    return-void
.end method

.method public l()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/videos/edit/activities/decor/a;->g:Z

    return v0
.end method
